From dd1e5800d5a9ce343a8dbdcc1c31cb098120f004 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 31 Oct 2006 08:32:08 +0000 Subject: [PATCH] (install_menu_quit_handler): Make variable `typesList' static const. (name_is_separator): Add const qualifier to arguments. --- src/macmenu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/macmenu.c b/src/macmenu.c index 1a1525eafb7..02fae600cdf 100644 --- a/src/macmenu.c +++ b/src/macmenu.c @@ -1500,7 +1500,8 @@ install_menu_quit_handler (kind, menu_handle) MenuHandle menu_handle; { #ifdef HAVE_CANCELMENUTRACKING - EventTypeSpec typesList[] = { { kEventClassKeyboard, kEventRawKeyDown } }; + static const EventTypeSpec typesList[] = + {{kEventClassKeyboard, kEventRawKeyDown}}; int id; for (id = min_menu_id[kind]; id < min_menu_id[kind + 1]; id++) @@ -2428,9 +2429,9 @@ mac_dialog_show (f, keymaps, title, header, error_name) /* Is this item a separator? */ static int name_is_separator (name) - char *name; + const char *name; { - char *start = name; + const char *start = name; /* Check if name string consists of only dashes ('-'). */ while (*name == '-') name++; -- 2.30.2